<?

session_start();
require("../../../../protect/connect_jeu.php");
$PAGE=NULL;
                                     echo "-".$_GET['ID'];

$query="SELECT terrain_id, terrain_name, terrain_pic, terrain_deplacement
,terrain_amena, terrain_multi, terrain_sante,terrain_defense,terrain_sorte1,terrain_sorte2
FROM uterrain
WHERE terrain_id=".$_GET['ID'];
//echo $query;

$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat);

$tmp[1]=mb_convert_encoding(addslashes($tmp[1]), "UTF-8", "ISO-8859-1");





//---------------------------------------------------------------PAGE

$PAGE='<script>
       document.form_unit_modif.terrain_name.value=\''.$tmp[1].'\';
       document.form_unit_modif.unit_entretient.value=\''.$tmp[3].'\';
       changecontenu(\'<div style="background-image:url(../images/terrain/'.$tmp[0].'-0.png);"></div>\',\'image_unit\');
       document.form_unit_modif.select_change_unite_images.value=\''.$tmp[2].'\';
       document.form_unit_modif.unit_agi.value=\''.$tmp[4].'\';

</script>';
       //
                     //select_unite_invention_mod   select_unite_bat_mod   document.form_unit_modif.select_unite_bat_mod.value=\''.$tmp[20].'\';


mysql_close();
echo $PAGE;





?>
